package xymt.novaway.system.domain.bo;

import xymt.novaway.common.core.validate.AddGroup;
import xymt.novaway.common.core.validate.EditGroup;
import xymt.novaway.system.domain.SysOption;
import xymt.novaway.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 网站配置业务对象 sys_option
 *
 * @author NovaWay
 * @date 2025-07-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysOption.class, reverseConvertGenerate = false)
public class SysOptionBo extends BaseEntity {

    /**
     * ID
     */
    private Long optionId;

    /**
     * 类别
     */
    private String optionCategory;

    /**
     * 名称
     */
    private String optionName;

    /**
     * 键
     */
    private String optionCode;

    /**
     * 值
     */
    @NotBlank(message = "值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optionValue;

    /**
     * 默认值
     */
    @NotBlank(message = "默认值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optionDefaultValue;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
